<?php

error_reporting(E_ALL & ~E_DEPRECATED);
require_once("../db_connect.php");

//お知らせ登録

	$notice_data = htmlspecialchars($_POST['notice_data'],ENT_QUOTES,"UTF-8");

	$sql = "INSERT INTO notice(notice_data)
			VALUES(?)";

	$stmt = $db->prepare($sql);

	$db->execute($stmt, $notice_data);     //UPDATE文を実行

	if (PEAR::isError($db)) {       //SQLの実行に失敗すればここでエラー文を出力
    	die($res->getMessage());
	}

	header("Location: manage_notice.php");
?>

